import request from '@/utils/request'

// 查询用户文章点赞列表
export function listUmContentFocus(query) {
  return request({
    url: '/um/umContentFocus/list',
    method: 'get',
    params: query
  })
}

// 查询用户文章点赞详细
export function getUmContentFocus(userId) {
  return request({
    url: '/um/umContentFocus/' + userId,
    method: 'get'
  })
}

// 新增用户文章点赞
export function addUmContentFocus(data) {
  return request({
    url: '/um/umContentFocus',
    method: 'post',
    data: data
  })
}

// 修改用户文章点赞
export function updateUmContentFocus(data) {
  return request({
    url: '/um/umContentFocus',
    method: 'put',
    data: data
  })
}

// 删除用户文章点赞
export function delUmContentFocus(userId) {
  return request({
    url: '/um/umContentFocus/' + userId,
    method: 'delete'
  })
}
